extern crate plc;
extern crate serde_json;

use self::plc::cmd::doit;
use self::serde_json::Value;
use lazy_static::lazy_static;
use plc::SvCache;

lazy_static! {
    static ref CACHE: SvCache = SvCache::new(100_000);
}

#[allow(dead_code)]
pub async fn dourl(data: &Value, cmd: &str) -> Result<Value, Value> {
    doit(data, cmd, CACHE.clone()).await
}
